package StringExercise;

public class substring {
    public static void main(String[] args) {
        String str = "原神天下第一";
        System.out.println("我超，"+str.substring(0,1));

        String str1 = "12345";
        System.out.println(str1.substring(0,1)+str1.substring(str1.length()-1,str1.length()));
    }
}
